package com.jprocms.module.cms.enums;

/**
 * @author jprocms
 */
public enum EnumJobStatus {
    /**
     * 任务状态-初始化
     */
    INIT(0, "初始化"),
    /**
     * 任务状态-停止运行或未启动
     */
    STOP(1, "停止运行或未启动状态"),
    /**
     * 任务状态-运行
     */
    RUNABLE(2, "可运行状态"),
    SUCCESS(3, "运行成功"),
    FAILED(4, "运行失败"),
    ;

    private Integer code;
    private String desc;

    EnumJobStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
